package com.tencent.sr.iris.activity.common.config;

import com.google.common.collect.Maps;
import com.tencent.sr.tech.dynamic.config.spring.annotation.DynamicConfigObject;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Map;

@Data
@Component
@DynamicConfigObject(key = "thirdReqSentinelSwitch")
public class ThirdReqSentinelSwitch {

    /**
     * true 走sentinel限流
     */
    private boolean switchOn = false;

    /**
     * true feign调用走sentinel限流
     */
    private boolean feignSwitchOn = false;

    /**
     * feign接口url对应的sentinel资源名称
     */
    private Map<String, String> resourceNameMap = Maps.newHashMap();
}
